/<template>
  <div class="class">
    <div class="left">
      <router-link to="/class/all">全部</router-link>
      <router-link to="/class/affection">言情</router-link>
      <router-link to="/class/campus">校园</router-link>
      <router-link to="/class/urban">都市</router-link>
      <router-link to="/class/fantasy">玄幻</router-link>
    </div>
    <div class="right">
      <router-view></router-view>
    </div>
  </div>
</template>

<script>
export default {};
</script>

<style>
*{
  margin: 0;
  padding: 0;
  list-style: none;
  box-sizing: border-box;
}
html,body,.class{
  width: 100%;
  height: 100%;
}
.class{
  flex: 1;
  display: flex;
}
.left{
  width: 150px;
  height: 100%;
  background-color: #efeef2;
  display: flex;
  flex-direction: column;
}
.left a{
  display: inline-block;
  width: 100%;
  height: 50px;
  text-align: center;
  line-height: 50px;
  background-color: #efeef2;
  margin-bottom: 2px;
  font-size: 18px;
}
.left a.router-link-active{
  background-color: #fff;
  font-weight: bold;
  color:#f8ceb8;
}
</style>
